<%@ page contentType="text/html;charset=UTF-8"%>
<%@ include file="/common/taglibs.jsp"%>
<%@ include file="../common.jsp"%>
<%@ page import="cn.firstsoft.firstframe.admin.PropertyFile"%>
<%@ page import="org.springside.core.Constants" %>
<%@ page import="java.io.*,java.util.*" %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
<head>
<title>管理控制台 - 环境设置 - 系统集成测试</title>
<%@ include file="/common/meta2.jsp"%>
<link href="../style.css" type="text/css" rel=stylesheet>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head>
<body>
	<table width="100%" align="center" >
		<TR>
			<TH class=listViewPaginationTdS1  align=left colSpan=4>
			设置系统集成测试结果
			</TH>
		</TR>
		<tr>
			<td widht="100%">
<%
   try{
    String integration = request.getParameter("integration");
    String plugins_eas_integrationStyle = request.getParameter("plugins_eas_integrationStyle");
    String eas_webservice_requesturl = request.getParameter("eas_webservice_requesturl");
    String eas_webservice_slnname = request.getParameter("eas_webservice_slnname");
    String eas_webservice_dcname = request.getParameter("eas_webservice_dcname");
    String eas_webservice_language = request.getParameter("eas_webservice_language");
    String eas_webservice_dbtype = request.getParameter("eas_webservice_dbtype");
    String message_eas_popup = request.getParameter("message_eas_popup");
    String message_eas_source = request.getParameter("message_eas_source");

    if("no".equals(integration)){
    	PropertyFile.writeProperties("firstframe.properties", "plugins.eas", "false");
    	PropertyFile.writeProperties("firstframe.properties", "constant.business", "false");
    }else if("k3".equals(integration)){
    	PropertyFile.writeProperties("firstframe.properties", "constant.business", "true");
    	PropertyFile.writeProperties("firstframe.properties", "plugins.eas", "false");
    }else if("eas".equals(integration)){
    	PropertyFile.writeProperties("firstframe.properties", "plugins.eas", "true");
    	PropertyFile.writeProperties("firstframe.properties", "constant.business", "false");
    	PropertyFile.writeProperties("firstframe.properties", "plugins.eas.integrationStyle", plugins_eas_integrationStyle);
    	PropertyFile.writeProperties("firstframe.properties", "eas.webservice.requesturl", eas_webservice_requesturl);
    	PropertyFile.writeProperties("firstframe.properties", "eas.webservice.slnname", eas_webservice_slnname);
    	PropertyFile.writeProperties("firstframe.properties", "eas.webservice.dcname", eas_webservice_dcname);
    	PropertyFile.writeProperties("firstframe.properties", "eas.webservice.language", eas_webservice_language);
    	PropertyFile.writeProperties("firstframe.properties", "eas.webservice.dbtype", eas_webservice_dbtype);
    	PropertyFile.writeProperties("firstframe.properties", "constant.message_eas_popup", message_eas_popup);
    	PropertyFile.writeProperties("firstframe.properties", "constant.message_eas_source", message_eas_source);
    }                     
    response.sendRedirect("integration_setting.jsp?flag=suc");
   }catch(Exception e){
	   response.sendRedirect("integration_setting.jsp?flag=err");
   }
%>
<BR>

			</td>
		</tr>
	</table>
</body>
</html>
